<?php defined('SYSPATH') OR die('No direct access allowed.');

class Gate_Controller extends Controller {
   
   function __construct(){
      engine::getSetEnvi();
   }
      
   function index(){
      echo engine::login('hendra','pass');
   }
   
   function getLoginJson($username,$pass){
      echo file::openUrl(engine::login($username,$pass));
   }
   
   function getLogoutJson($username){
      echo file::openUrl(engine::logout($username));
   }
   
   function getOnlineJson(){
      echo file::openUrl(engine::getOnline());
   }
   
   function getDetailJson($username){
      echo file::openUrl(engine::getDetail($username));
   }
   
   function getStatusJson($username){
      echo file::openUrl(engine::getStatus($username));
   }
}